package com.vca.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WriteOffRecordRequest对象", description="核销记录列表请求对象")
public class WriteOffRecordRequest implements Serializable {
    private static final long serialVersionUID = -5270711004143765364L;

    @ApiModelProperty(value = "时间区间")
    private String dateLimit;

//    @ApiModelProperty(value = "关键字")
//    private String keyword;


    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单信息")
    private String productName;

    @ApiModelProperty(value = "预约人姓名 或 手机号 ")
    private String lecturerPhone;

    @ApiModelProperty(value = "用户信息、手机号、邮箱 模糊查询")
    private String realName;

    @ApiModelProperty(value = "预约时间区间")
    private String schedulingDate;

    @ApiModelProperty(value = "订单类型:0-课程订单 1=套课订单 2=讲座订单 3=展览订单 4=商品订单")
    @NotNull(message = "订单类型不能为空")
    @Range(min = 0, max = 5, message = "未知的订单类型")
    private Integer type;

}
